/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class TipoProductoCriteria extends AbstractORMCriteria {
	public final IntegerExpression idTipo;
	public final StringExpression tipoPdto;
	
	public TipoProductoCriteria(Criteria criteria) {
		super(criteria);
		idTipo = new IntegerExpression("idTipo", this);
		tipoPdto = new StringExpression("tipoPdto", this);
	}
	
	public TipoProductoCriteria(PersistentSession session) {
		this(session.createCriteria(TipoProducto.class));
	}
	
	public TipoProductoCriteria() throws PersistentException {
		this(orm.MarketFrogPersistentManager.instance().getSession());
	}
	
	public ProductoCriteria createProductoCriteria() {
		return new ProductoCriteria(createCriteria("producto"));
	}
	
	public TipoProducto uniqueTipoProducto() {
		return (TipoProducto) super.uniqueResult();
	}
	
	public TipoProducto[] listTipoProducto() {
		java.util.List list = super.list();
		return (TipoProducto[]) list.toArray(new TipoProducto[list.size()]);
	}
}

